package com.sky.controller.user;

import com.sky.pojo.Orders;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.service.user.UserPayOrdersService;
import com.sky.vo.OrderVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@Api(tags = "用户支付订单相关接口")
public class UserPayOrdersController {
    @Autowired
    private UserPayOrdersService userPayOrdersService;
    @ApiOperation("查询订单支付状态")
    @GetMapping("/user/order/queryOrdersCheckStatus")
    public Result<PageResult> queryOrdersCheckStatus(Integer page, Integer pageSize,Integer payStatus) {
        log.info("查询订单支付状态:{}",payStatus);
        PageResult result=userPayOrdersService.queryOrdersCheckStatus(page,pageSize,payStatus);
        return Result.success(result);
    }
}
